<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">发票状态</td>
		<td class="queryContent">
			<select id="queryFpState" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
				<option value="0" selected>[不限]</option>
				<option value="10">待支付</option>
				<option value="11">已支付</option>
				<option value="12">支付失败</option>
				<option value="20">开票中</option>
				<option value="22">开票失败</option>
				<option value="30">配送中</option>
				<option value="40">完成</option>
				<option value="50">取消</option>
			</select> 
		</td>
		<td class="queryTitle" width="80px">发票编号</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryFpNumber" />
		</td>
		<td class="queryBtnTd" rowspan="2">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" plain="true"  onclick="doQuery()">查询</a>
		</td>
	</tr>
	<tr>
		<td class="queryTitle" width="68px">手机号</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryFpMobile" />
		</td>
		<td class="queryTitle" width="80px">发票抬头</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryFpTitle" />
		</td>
	</tr>
</table>

<table id="invoiceGrid"></table>

<div id="stateDlg" class="easyui-window" title="" closed="true" style="width:600px; height:280px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="stateForm"  method="POST">
			<s:hidden name="updInvId" id="updInvId"/>
			<s:hidden name="updRecdInfo" id="updRecdInfo"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="stateTable">
				<tr>	
					<td class="queryTitle" width="100px">订单/明细编号</td>
					<td class="queryContent" >
						<span id="updInvNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px">反馈状态</td>
					<td class="queryContent">
						<select id="updInvState" class="easyui-combobox" panelHeight="auto" editable="false" style="width:120px" >
							<option value="0" selected>[未知]</option>
							<option value="10">待支付</option>
							<option value="11">已支付</option>
							<option value="12">支付失败</option>
							<option value="20">开票中</option>
							<option value="22">开票失败</option>
							<option value="30">配送中</option>
							<option value="40">完成</option>
							<option value="50">取消</option>
						</select>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">描述信息</td>
					<td class="queryContent">
						<textarea id="updDesc" rows="6" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="stateBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdState()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdState()">取消</a>
    </div>
</div>


<div id="expressDlg" class="easyui-window" title="" closed="true" style="width:500px; height:200px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="expressForm"  method="POST">
			<s:hidden name="expInvId" id="expInvId"/>
			<table border="0" class="queryTable" width="400px" height="auto" style="margin-bottom:0px;" id="expressTable">
				<tr>	
					<td class="queryTitle" width="100px">发票明细编号</td>
					<td class="queryContent" >
						<span id="expInvNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">快递/物流公司</td>
					<td class="queryContent" >
						<input class="inputText" type="text" style="width:240;" id="editExpress" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">运单号</td>
					<td class="queryContent" >
						<input class="inputText" type="text" style="width:240;" id="editTrackNo" />
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="expressBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdExp()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdExp()">取消</a>
    </div>
</div>


<script type="text/javascript" src="${ctx}/js/trade/invoiceInfo.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
